package top.zhangjianyong.tools.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.zhangjianyong.tools.service.api.TransactionTypeService;
import top.zhangjianyong.tools.utils.ApiResponse;

/**
 * @author ： zhangjianyong
 * @date ： 2022/4/25 上午9:34
 */
@RestController
@RequestMapping("/transactionType")
public class TransactionTypeController {


    @Autowired
    private TransactionTypeService transactionTypeService;

    @PostMapping("/list")
    public ApiResponse list() throws Exception {
        return transactionTypeService.list();
    }

}
